package com.yunche.yunchebusiness.mvp.model

import com.yunche.yunchebusiness.base.BaseResponse
import com.yunche.yunchebusiness.base.rx.SchedulerUtils
import com.yunche.yunchebusiness.entity.UserEntity
import com.yunche.yunchebusiness.network.RetrofitManager
import io.reactivex.Observable

/**
 * Create by Crcker on 2018/12/28 14:02
 * Email: Crcker@163.com
 */


class UserModel {

    fun getUserInfo(): Observable<BaseResponse<UserEntity>> {
        return RetrofitManager.service.getUserInfo().compose(SchedulerUtils.ioToMain())
    }

    fun changeUserInfo() {

    }
}